<!DOCTYPE html>
<html>
	<head>
		<script type="text/javascript" src="../js/jquery.js" ></script>
		<script type="text/javascript" src="../city_picker/js/city-picker.data.js" ></script>
		<script type="text/javascript" src="../city_picker/js/city-picker.js" ></script>
		<link rel="stylesheet" href="../city_picker/css/city-picker.css" />
		<meta charset="UTF-8">
		<title>js动态赋值</title>
		<script type="text/javascript">
			$(function(){
				$("#area").citypicker();
				$("#setVal").click(function(){
					$("#area").citypicker("reset");
					$("#area").citypicker("destroy");
					$("#area").citypicker({
						province:'浙江省',
						city:'杭州市',
						district:"江干区"
					});
				});
			});
		</script>
	</head>
	<body>
		<div style="position: relative;">
			<input name="area" type="text" id="area" size="50"/>
			<input id="setVal" value="赋值" type="button" />
		</div>
	</body>
</html>
